projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef30d1a
)
initial support for supplying image count property for image bundles
author
Joakim Verona
<joakim@verona.se>
Fri, 14 May 2010 08:19:30 +0000
(10:19 +0200)
committer
Joakim Verona
<joakim@verona.se>
Fri, 14 May 2010 08:19:30 +0000
(10:19 +0200)
by imagemagick.
src/image.c
patch
|
blob
|
history
diff --git
a/src/image.c
b/src/image.c
index 5865d7be00a490a534a52dd9ddc1c33ae5f6b2aa..1bc58db57b8b484ce4a2bbb63df6e2ab858d1c99 100644
(file)
--- a/
src/image.c
+++ b/
src/image.c
@@
-7926,6
+7926,14
@@
imagemagick_load_image (f, img, contents, size, filename)
ximg->data);
}
+
+ //TODO figure out imagecount here!
+ if (MagickGetNumberImages(image_wand) > 1)
+ img->data.lisp_val = Fcons (Qcount,
+ Fcons (make_number (MagickGetNumberImages(image_wand)),
+ img->data.lisp_val));
+
+
#ifdef COLOR_TABLE_SUPPORT
/* Remember colors allocated for this image. */
img->colors = colors_in_color_table (&img->ncolors);